class Solution(object):
    def minTimeToVisitAllPoints(self, points):
        """
        :type points: List[List[int]]
        :rtype: int
        """
        c = 0
        for i in range(1, len(points)):
            c += max(abs(points[i][1] - points[i - 1][1]), abs(points[i][0] - points[i - 1][0]))
        return c